import { ElMessage } from 'element-plus'

export type type = 'success' | 'warning' | 'error' | 'info'

export const MessageFunc = ( type: type = 'success', Mess: any = '成功' ) => {
  ElMessage({
    type: type,
    message: Mess,
    center: true,
    showClose: true
  })
}